package com.jotal.service.apiImpl;

import com.google.common.collect.Lists;
import com.jotal.api.demoApi;
import com.jotal.api.response.BaseResult;
import org.apache.dubbo.config.annotation.DubboService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;

/**
 * @description:
 * @author: Jotal
 * @time: 2021/1/22 15:22
 */
@DubboService
public class demoApiImpl implements demoApi {

    private static final Logger log = LoggerFactory.getLogger(demoApiImpl.class);
    @Override
    public BaseResult demo() {

        log.info("-------------------来消费我了");
        BaseResult baseResult = new BaseResult();
        List<String> list = Lists.newArrayList();
        list.add("JAVA");
        list.add("duboo");
        baseResult.setCode(0);
        baseResult.setMsg("请求成功");
        baseResult.setData(list);
        return baseResult;
    }
}
